package java3_1;

import java.util.Scanner;

/**
 * 11：
 * 一商场普通顾客购物满100元打9折；会员购物打8折；会员购物满200元打7.5折
 * 实现思路：
 * 1、外层判断是否是会员
 * 2、内层判断是否达到相应打折要求
 */
public class homework11 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入购物金额：");
        double money = scanner.nextDouble();
        System.out.println("请输入您是否为会员：");
        boolean x = scanner.nextBoolean();
        if (x){
            if (money>=200){
                double a = money*0.75;
                System.out.println("您一共需要支付："+a+"元");
            }else {
                double a = money*0.8;
                System.out.println("您一共需要支付："+a+"元");
            }

        }
        else {
            double b = money*0.9;
            System.out.println("您一共需要支付："+b+"元");
        }
    }
}
